package lab02.test07;

import java.util.Scanner;

public class Test07 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        Person p1=new Person();
        Student s1=new Student();
        System.out.println("请输入个人信息：");
        String name=sc.next();
        p1.setName(name);
        int age=sc.nextInt();
        p1.setAge(age);
        String id=sc.next();
        p1.setId(id);
        String no=sc.next();
        s1.setNo(no);
        String school=sc.next();
        s1.setSchool(school);
        System.out.println("姓名："+p1.getName()+" 年龄："+p1.getAge()+" 身份证号："+p1.getId()+" 学号："+s1.getNo()+" 学校："+s1.getSchool());

    }
}
